﻿///***************************************************************
/// 시  스  템 : Updms.Etc.Exe
/// 단위시스템 : ETC
/// 계      층 : Execute Layer (Relation Transaction)
/// 프로그램명 : Etc1014m_RT
/// 파  일  명 : Etc1014m_RT.cs
/// 설      명 : 레고관리
///***************************************************************
/// 수정ID 일자       이름     내용
///---------------------------------------------------------------
/// CH001  2014-09-11 송시명   최초 작성
///***************************************************************
using System.EnterpriseServices;
using System.Runtime.InteropServices;

using SMFramework.Data;


namespace Updms.Etc.Exe
{
	[ComVisible(true)]
	[Transaction(TransactionOption.Required)]
	[JustInTimeActivation(true)]
	public class Etc1014m_RT : Base.AppFramework.RuleBase
	{
		public Etc1014m_RT()
		{
		}

		#region InsertProcess

		[AutoComplete]
		public int InsertProcess(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Etc_Dac_UPDMS_ETC_LEGO_MGT _dac = new Dac.Etc_Dac_UPDMS_ETC_LEGO_MGT())
			{
				return _dac.Insert(lo_dp);
			}
		}

		#endregion

		#region UpdateProcess

		[AutoComplete]
		public int UpdateProcess(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Etc_Dac_UPDMS_ETC_LEGO_MGT _dac = new Dac.Etc_Dac_UPDMS_ETC_LEGO_MGT())
			{
				return _dac.Update(lo_dp);
			}
		}

		#endregion

		#region DeleteProcess

		[AutoComplete]
		public int DeleteProcess(string ls_xml)
		{
			_exeTimeLog.Prepare();

			using (Dac.Etc_Dac_UPDMS_ETC_LEGO_MGT _dac = new Dac.Etc_Dac_UPDMS_ETC_LEGO_MGT())
			{
				return _dac.Delete(ls_xml);
			}
		}

		#endregion

	}
}
